<?php
// require_once "./init.php";
define("dir",dirname(dirname(dirname(__FILE__)))."/");
define("plugDir",dirname(dirname(dirname(__FILE__)))."/plugins/system/");
require_once "". plugDir ."md5.php";

echo '<b>Checking Files...</b> <br />';

$i = 0;
foreach($checksum as $var => $value)
{
 	if ( !file_exists("". dir ."". $var ."") )
 	{
 	 	$i++;
 		print "$var = <span style=\"color:red;\">FAIL</span><br />";
 	}
 	flush();
}
echo '<br /><strong>';
echo (!$i) ? 'All file(s) and/or folder(s) exist! Your site will run fine.' : 'System is missing some file(s) and/or folder(s)! Your site will not run.';
echo '</strong>';

?>